package com.fpmsa.officeweb.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 新闻/文章类别表
 * </p>
 *
 * @author huangyuehong123
 * @since 2018-06-20
 */
@TableName("news_category")
public class NewsCategory extends Model<NewsCategory> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 新闻/文章类别名称
     */
    private String name;
    /**
     * 新闻/文章主题id
     */
    @TableField("theme_id")
    private Long themeId;
    /**
     * 请求地址
     */
    @TableField("request_url")
    private String requestUrl;
    /**
     * 移动端请求地址
     */
    @TableField("wap_request_url")
    private String wapRequestUrl;
    /**
     * 排序值
     */
    @TableField("order_value")
    private String orderValue;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 是否删除（0：否，1：是）
     */
    @TableField("is_del")
    private Integer isDel;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getThemeId() {
        return themeId;
    }

    public void setThemeId(Long themeId) {
        this.themeId = themeId;
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public String getWapRequestUrl() {
        return wapRequestUrl;
    }

    public void setWapRequestUrl(String wapRequestUrl) {
        this.wapRequestUrl = wapRequestUrl;
    }

    public String getOrderValue() {
        return orderValue;
    }

    public void setOrderValue(String orderValue) {
        this.orderValue = orderValue;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "NewsClass{" +
        "id=" + id +
        ", name=" + name +
        ", themeId=" + themeId +
        ", requestUrl=" + requestUrl +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", isDel=" + isDel +
        "}";
    }
}
